package com.ruoyi.project.treat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

public class TreRegister extends BaseEntity {
    private String regId;//挂单号ID
    private String patiName ;//患者姓名
    private String regDepts;//挂号科室
    private String regDocter;//接诊医生
    private Double regPrice;//挂号费用
    private Integer regNum;//流水编号（当前号数+1）
    private Integer regStatus;//状态
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date regSdate;//就诊日期
    private String regType;//挂号类型
    private String regTime;//挂号时段
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date regRdate;//挂号时间

    public TreRegister() {
    }

    public TreRegister(String regId, String patiName, String regDepts, String regDocter, Double regPrice, Integer regNum, Integer regStatus, Date regSdate, String regType, String regTime, Date regRdate) {
        this.regId = regId;
        this.patiName = patiName;
        this.regDepts = regDepts;
        this.regDocter = regDocter;
        this.regPrice = regPrice;
        this.regNum = regNum;
        this.regStatus = regStatus;
        this.regSdate = regSdate;
        this.regType = regType;
        this.regTime = regTime;
        this.regRdate = regRdate;
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public String getRegDepts() {
        return regDepts;
    }

    public void setRegDepts(String regDepts) {
        this.regDepts = regDepts;
    }

    public String getRegDocter() {
        return regDocter;
    }

    public void setRegDocter(String regDocter) {
        this.regDocter = regDocter;
    }

    public Double getRegPrice() {
        return regPrice;
    }

    public void setRegPrice(Double regPrice) {
        this.regPrice = regPrice;
    }

    public Integer getRegNum() {
        return regNum;
    }

    public void setRegNum(Integer regNum) {
        this.regNum = regNum;
    }

    public Integer getRegStatus() {
        return regStatus;
    }

    public void setRegStatus(Integer regStatus) {
        this.regStatus = regStatus;
    }

    public Date getRegSdate() {
        return regSdate;
    }

    public void setRegSdate(Date regSdate) {
        this.regSdate = regSdate;
    }

    public String getRegType() {
        return regType;
    }

    public void setRegType(String regType) {
        this.regType = regType;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public Date getRegRdate() {
        return regRdate;
    }

    public void setRegRdate(Date regRdate) {
        this.regRdate = regRdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TreRegister that = (TreRegister) o;
        return Objects.equals(regId, that.regId) &&
                Objects.equals(patiName, that.patiName) &&
                Objects.equals(regDepts, that.regDepts) &&
                Objects.equals(regDocter, that.regDocter) &&
                Objects.equals(regPrice, that.regPrice) &&
                Objects.equals(regNum, that.regNum) &&
                Objects.equals(regStatus, that.regStatus) &&
                Objects.equals(regSdate, that.regSdate) &&
                Objects.equals(regType, that.regType) &&
                Objects.equals(regTime, that.regTime) &&
                Objects.equals(regRdate, that.regRdate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(regId, patiName, regDepts, regDocter, regPrice, regNum, regStatus, regSdate, regType, regTime, regRdate);
    }

    @Override
    public String toString() {
        return "TreRegister{" +
                "regId='" + regId + '\'' +
                ", patiName='" + patiName + '\'' +
                ", regDepts='" + regDepts + '\'' +
                ", regDocter='" + regDocter + '\'' +
                ", regPrice=" + regPrice +
                ", regNum=" + regNum +
                ", regStatus=" + regStatus +
                ", regSdate=" + regSdate +
                ", regType='" + regType + '\'' +
                ", regTime='" + regTime + '\'' +
                ", regRdate=" + regRdate +
                '}';
    }
}
